<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"><title>玩客云(2)安装cloudreve并挂载硬盘 | 梧桐的学习日记</title><meta name="author" content="梧桐影下月光卧"><meta name="copyright" content="梧桐影下月光卧"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="直刷带宝塔的armbian固件，省事，如果自行安装Nginx、php和mysql非常耗时，4个小时左右挂载硬盘（所有命令建议使用FinallShell，可视化编辑器操作）插上硬盘，查看所有的磁盘fdisk -l 我这里&#x2F;dev&#x2F;sda5 是我的硬盘，显示480G  如果硬盘不是ext4格式，格式化命令： mkfs.ext4 &#x2F;dev&#x2F;sda5根目录新建awy0718，再新建一个sda5目录作为要挂">
<meta property="og:type" content="article">
<meta property="og:title" content="玩客云(2)安装cloudreve并挂载硬盘">
<meta property="og:url" content="https://acwy.fun/2023/05/27/%E7%8E%A9%E5%AE%A2%E4%BA%91(2)%E5%AE%89%E8%A3%85cloudreve%E5%B9%B6%E6%8C%82%E8%BD%BD%E7%A1%AC%E7%9B%98/index.html">
<meta property="og:site_name" content="梧桐的学习日记">
<meta property="og:description" content="直刷带宝塔的armbian固件，省事，如果自行安装Nginx、php和mysql非常耗时，4个小时左右挂载硬盘（所有命令建议使用FinallShell，可视化编辑器操作）插上硬盘，查看所有的磁盘fdisk -l 我这里&#x2F;dev&#x2F;sda5 是我的硬盘，显示480G  如果硬盘不是ext4格式，格式化命令： mkfs.ext4 &#x2F;dev&#x2F;sda5根目录新建awy0718，再新建一个sda5目录作为要挂">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://img2.baidu.com/it/u=3980554196,2695416044&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500">
<meta property="article:published_time" content="2023-05-27T14:32:00.000Z">
<meta property="article:modified_time" content="2024-02-26T05:56:35.381Z">
<meta property="article:author" content="梧桐影下月光卧">
<meta property="article:tag" content="玩客云">
<meta property="article:tag" content="linux挂载硬盘">
<meta property="article:tag" content="cloudreve">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://img2.baidu.com/it/u=3980554196,2695416044&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500"><link rel="shortcut icon" href="/img/logo.png"><link rel="canonical" href="https://acwy.fun/2023/05/27/%E7%8E%A9%E5%AE%A2%E4%BA%91(2)%E5%AE%89%E8%A3%85cloudreve%E5%B9%B6%E6%8C%82%E8%BD%BD%E7%A1%AC%E7%9B%98/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: undefined,
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: true,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: true,
  }
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: '玩客云(2)安装cloudreve并挂载硬盘',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2024-02-26 13:56:35'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
    win.getCSS = (url,id = false) => new Promise((resolve, reject) => {
      const link = document.createElement('link')
      link.rel = 'stylesheet'
      link.href = url
      if (id) link.id = id
      link.onerror = reject
      link.onload = link.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        link.onload = link.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(link)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 5.4.2"></head><body><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pace-js/themes/blue/pace-theme-minimal.min.css"/><script src="https://cdn.jsdelivr.net/npm/pace-js/pace.min.js"></script><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src= "" data-lazy-src="/img/logo.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">28</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">35</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 目录</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友情链接</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg fixed" id="page-header" style="background-image: url('https://img2.baidu.com/it/u=3980554196,2695416044&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=JPEG?w=750&amp;h=500')"><nav id="nav"><span id="blog-info"><a href="/" title="梧桐的学习日记"><span class="site-name">梧桐的学习日记</span></a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 目录</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友情链接</span></a></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">玩客云(2)安装cloudreve并挂载硬盘</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-05-27T14:32:00.000Z" title="发表于 2023-05-27 22:32:00">2023-05-27</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-02-26T05:56:35.381Z" title="更新于 2024-02-26 13:56:35">2024-02-26</time></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">532</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>1分钟</span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h3 id="直刷带宝塔的armbian固件，省事，如果自行安装Nginx、php和mysql非常耗时，4个小时左右"><a href="#直刷带宝塔的armbian固件，省事，如果自行安装Nginx、php和mysql非常耗时，4个小时左右" class="headerlink" title="直刷带宝塔的armbian固件，省事，如果自行安装Nginx、php和mysql非常耗时，4个小时左右"></a>直刷带宝塔的armbian固件，省事，如果自行安装Nginx、php和mysql非常耗时，4个小时左右</h3><h3 id="挂载硬盘（所有命令建议使用FinallShell，可视化编辑器操作）"><a href="#挂载硬盘（所有命令建议使用FinallShell，可视化编辑器操作）" class="headerlink" title="挂载硬盘（所有命令建议使用FinallShell，可视化编辑器操作）"></a>挂载硬盘（所有命令建议使用FinallShell，可视化编辑器操作）</h3><h4 id="插上硬盘，查看所有的磁盘fdisk-l"><a href="#插上硬盘，查看所有的磁盘fdisk-l" class="headerlink" title="插上硬盘，查看所有的磁盘fdisk -l"></a>插上硬盘，查看所有的磁盘<code>fdisk -l</code></h4><blockquote>
<p>我这里/dev/sda5 是我的硬盘，显示480G</p>
</blockquote>
<h4 id="如果硬盘不是ext4格式，格式化命令：-mkfs-ext4-dev-sda5"><a href="#如果硬盘不是ext4格式，格式化命令：-mkfs-ext4-dev-sda5" class="headerlink" title="如果硬盘不是ext4格式，格式化命令： mkfs.ext4 /dev/sda5"></a>如果硬盘不是ext4格式，格式化命令： <code>mkfs.ext4 /dev/sda5</code></h4><h4 id="根目录新建awy0718，再新建一个sda5目录作为要挂载的根目录。命令：-mkdir-awy0718-sda5"><a href="#根目录新建awy0718，再新建一个sda5目录作为要挂载的根目录。命令：-mkdir-awy0718-sda5" class="headerlink" title="根目录新建awy0718，再新建一个sda5目录作为要挂载的根目录。命令： mkdir awy0718/sda5"></a>根目录新建<code>awy0718</code>，再新建一个<code>sda5</code>目录作为要挂载的根目录。命令： <code>mkdir awy0718/sda5</code></h4><h4 id="挂载命令：mount-dev-sda5-awy0718-sda5"><a href="#挂载命令：mount-dev-sda5-awy0718-sda5" class="headerlink" title="挂载命令：mount /dev/sda5 /awy0718/sda5"></a>挂载命令：<code>mount /dev/sda5 /awy0718/sda5</code></h4><h4 id="重启开机自动挂载，需要修改etc-fstab文件，在后面添加"><a href="#重启开机自动挂载，需要修改etc-fstab文件，在后面添加" class="headerlink" title="重启开机自动挂载，需要修改etc/fstab文件，在后面添加"></a>重启开机自动挂载，需要修改<code>etc/fstab</code>文件，在后面添加</h4><blockquote>
<p>/dev/sda5 /awy0718/sda5 ext4 defaults 0 0</p>
</blockquote>
<h3 id="安装cloudreve"><a href="#安装cloudreve" class="headerlink" title="安装cloudreve"></a>安装cloudreve</h3><ol>
<li><a target="_blank" rel="noopener" href="https://cloudreve.org/">cloudreve官网</a>去github下载</li>
<li>确定linux服务器架构<code>uname -a</code>，下载对应安装包，<code>解压上传</code>。我安装到了<code>/awy0718/cloudreve</code>下</li>
<li>赋予执行权限<br><code>chmod +x ./cloudreve</code><br>4 启动 Cloudreve<br><code>./cloudreve</code>，在控制台记下初始账号密码登录，然后进入cloudreve修改自己熟悉账号密码</li>
<li>宝塔中安装进程管理器<code>supervisord</code>，选中目录，启动命令为<code>/awy0718/cloudreve/cloudreve</code></li>
<li>cloudreve默认端口为5212，浏览器访问 <code>玩客云IP:5212</code>进入到网盘</li>
<li>设置存储策略本地硬盘(使用挂载硬盘作为存储盘，魔法变量可自定义): <code>/awy0718/sda5/cloudreve-files/&#123;uid&#125;/&#123;path&#125;</code></li>
</ol>
<h3 id="安装Aria2"><a href="#安装Aria2" class="headerlink" title="安装Aria2"></a>安装Aria2</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">wget -N git.io/aria2.sh &amp;&amp; chmod +x aria2.sh</span><br><span class="line"># 国内备用网址</span><br><span class="line">wget -N --no-check-certificate https://blog.ahayu.cn/aria2.sh &amp;&amp; chmod +x aria2.sh &amp;&amp; bash aria2.sh</span><br></pre></td></tr></table></figure>
<ol>
<li>运行脚本后，选择 1 安装</li>
<li>安装好后，如果需要命令面板，运行下载aria2的目录内的aria2.sh: <code>/awy0718/aria2/aria2.sh</code></li>
<li>如果启动失败，面板选择 2 更新</li>
<li>启动成功，会显示简单配置信息，</li>
<li>开启自动更新BT-tracker</li>
<li>其他配置命令：</li>
</ol>
<blockquote>
<p>启动：service aria2 start<br>停止：service aria2 stop<br>重启：service aria2 restart<br>查看状态：service aria2 status<br>配置文件：/root/.aria2/aria2.conf（配置文件包含中文注释，但是一些系统可能不支持显示中文）<br>下载目录：/usr/local/caddy/www/aria2/Download（该目录为Github下载安装的，而备用地址下载的默认为/usr/local/caddy/www/file）</p>
</blockquote>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="https://acwy.fun">梧桐影下月光卧</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://acwy.fun/2023/05/27/%E7%8E%A9%E5%AE%A2%E4%BA%91(2)%E5%AE%89%E8%A3%85cloudreve%E5%B9%B6%E6%8C%82%E8%BD%BD%E7%A1%AC%E7%9B%98/">https://acwy.fun/2023/05/27/%E7%8E%A9%E5%AE%A2%E4%BA%91(2)%E5%AE%89%E8%A3%85cloudreve%E5%B9%B6%E6%8C%82%E8%BD%BD%E7%A1%AC%E7%9B%98/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://acwy.fun" target="_blank">梧桐的学习日记</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/%E7%8E%A9%E5%AE%A2%E4%BA%91/">玩客云</a><a class="post-meta__tags" href="/tags/linux%E6%8C%82%E8%BD%BD%E7%A1%AC%E7%9B%98/">linux挂载硬盘</a><a class="post-meta__tags" href="/tags/cloudreve/">cloudreve</a></div><div class="post_share"><div class="social-share" data-image="https://img2.baidu.com/it/u=3980554196,2695416044&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=JPEG?w=750&amp;h=500" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><div class="post-reward"><div class="reward-button"><i class="fas fa-qrcode"></i> 打赏</div><div class="reward-main"><ul class="reward-all"><li class="reward-item"><a href="/img/wechatpay.png" target="_blank"><img class="post-qr-code-img" src= "" data-lazy-src="/img/wechatpay.png" alt="微信"/></a><div class="post-qr-code-desc">微信</div></li><li class="reward-item"><a href="/img/alipay.png" target="_blank"><img class="post-qr-code-img" src= "" data-lazy-src="/img/alipay.png" alt="支付宝"/></a><div class="post-qr-code-desc">支付宝</div></li></ul></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2023/08/23/%E7%8E%A9%E5%AE%A2%E4%BA%91(3)%E5%9B%BA%E5%AE%9Amac%E5%92%8Cip/" title="玩客云(3)固定mac和ip"><img class="cover" src= "" data-lazy-src="https://img2.baidu.com/it/u=3980554196,2695416044&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=JPEG?w=750&amp;h=500" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">玩客云(3)固定mac和ip</div></div></a></div><div class="next-post pull-right"><a href="/2023/05/27/%E7%8E%A9%E5%AE%A2%E4%BA%91(1)%E5%88%B7armbian/" title="玩客云(1)刷armbian(轻量级Debian)"><img class="cover" src= "" data-lazy-src="https://img2.baidu.com/it/u=3980554196,2695416044&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=JPEG?w=750&amp;h=500" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">玩客云(1)刷armbian(轻量级Debian)</div></div></a></div></nav><div class="relatedPosts"><div class="headline"><i class="fas fa-thumbs-up fa-fw"></i><span>相关推荐</span></div><div class="relatedPosts-list"><div><a href="/2023/05/27/%E7%8E%A9%E5%AE%A2%E4%BA%91(1)%E5%88%B7armbian/" title="玩客云(1)刷armbian(轻量级Debian)"><img class="cover" src= "" data-lazy-src="https://img2.baidu.com/it/u=3980554196,2695416044&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2023-05-27</div><div class="title">玩客云(1)刷armbian(轻量级Debian)</div></div></a></div><div><a href="/2023/08/23/%E7%8E%A9%E5%AE%A2%E4%BA%91(3)%E5%9B%BA%E5%AE%9Amac%E5%92%8Cip/" title="玩客云(3)固定mac和ip"><img class="cover" src= "" data-lazy-src="https://img2.baidu.com/it/u=3980554196,2695416044&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2023-08-23</div><div class="title">玩客云(3)固定mac和ip</div></div></a></div><div><a href="/2024/05/05/%E7%8E%A9%E5%AE%A2%E4%BA%91(4)%E5%88%B7Casaos/" title="玩客云(4)刷Casaos"><img class="cover" src= "" data-lazy-src="https://img2.baidu.com/it/u=3980554196,2695416044&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2024-05-05</div><div class="title">玩客云(4)刷Casaos</div></div></a></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src= "" data-lazy-src="/img/logo.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">梧桐影下月光卧</div><div class="author-info__description">分享个人学习路上的小知识</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">28</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">35</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://beau.acwy.fun"><i class="fa-solid fa-envelope"></i><span>点击联系我</span></a></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content"><b> <font color="#e66b6d">欢</font> <font color="#e66d98">迎</font> <font color="#e66cc6">访</font> <font color="#cc6de6">问</font> <font color="#9770e6">a</font> <font color="#6d93e6">c</font> <font color="#6fcde6">w</font> <font color="#72e6b6">y</font> <font color="#72e689">的</font> <font color="#99e670">学</font> <font color="#cde670">习</font> <font color="#e6df72">日</font> <font color="#e6c073">记</font> </b> <p align="center"> <img src= "" data-lazy-src="https://upyun.acwy.fun/acwy.fun/公告1.gif" width="50" alt="mao"> </p> <p align="center">微信：acwy0718</p> <p align="center">邮箱：awy0718@gmail.com</p></div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%9B%B4%E5%88%B7%E5%B8%A6%E5%AE%9D%E5%A1%94%E7%9A%84armbian%E5%9B%BA%E4%BB%B6%EF%BC%8C%E7%9C%81%E4%BA%8B%EF%BC%8C%E5%A6%82%E6%9E%9C%E8%87%AA%E8%A1%8C%E5%AE%89%E8%A3%85Nginx%E3%80%81php%E5%92%8Cmysql%E9%9D%9E%E5%B8%B8%E8%80%97%E6%97%B6%EF%BC%8C4%E4%B8%AA%E5%B0%8F%E6%97%B6%E5%B7%A6%E5%8F%B3"><span class="toc-number">1.</span> <span class="toc-text">直刷带宝塔的armbian固件，省事，如果自行安装Nginx、php和mysql非常耗时，4个小时左右</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%8C%82%E8%BD%BD%E7%A1%AC%E7%9B%98%EF%BC%88%E6%89%80%E6%9C%89%E5%91%BD%E4%BB%A4%E5%BB%BA%E8%AE%AE%E4%BD%BF%E7%94%A8FinallShell%EF%BC%8C%E5%8F%AF%E8%A7%86%E5%8C%96%E7%BC%96%E8%BE%91%E5%99%A8%E6%93%8D%E4%BD%9C%EF%BC%89"><span class="toc-number">2.</span> <span class="toc-text">挂载硬盘（所有命令建议使用FinallShell，可视化编辑器操作）</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E6%8F%92%E4%B8%8A%E7%A1%AC%E7%9B%98%EF%BC%8C%E6%9F%A5%E7%9C%8B%E6%89%80%E6%9C%89%E7%9A%84%E7%A3%81%E7%9B%98fdisk-l"><span class="toc-number">2.1.</span> <span class="toc-text">插上硬盘，查看所有的磁盘fdisk -l</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%A6%82%E6%9E%9C%E7%A1%AC%E7%9B%98%E4%B8%8D%E6%98%AFext4%E6%A0%BC%E5%BC%8F%EF%BC%8C%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%91%BD%E4%BB%A4%EF%BC%9A-mkfs-ext4-dev-sda5"><span class="toc-number">2.2.</span> <span class="toc-text">如果硬盘不是ext4格式，格式化命令： mkfs.ext4 &#x2F;dev&#x2F;sda5</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E6%A0%B9%E7%9B%AE%E5%BD%95%E6%96%B0%E5%BB%BAawy0718%EF%BC%8C%E5%86%8D%E6%96%B0%E5%BB%BA%E4%B8%80%E4%B8%AAsda5%E7%9B%AE%E5%BD%95%E4%BD%9C%E4%B8%BA%E8%A6%81%E6%8C%82%E8%BD%BD%E7%9A%84%E6%A0%B9%E7%9B%AE%E5%BD%95%E3%80%82%E5%91%BD%E4%BB%A4%EF%BC%9A-mkdir-awy0718-sda5"><span class="toc-number">2.3.</span> <span class="toc-text">根目录新建awy0718，再新建一个sda5目录作为要挂载的根目录。命令： mkdir awy0718&#x2F;sda5</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E6%8C%82%E8%BD%BD%E5%91%BD%E4%BB%A4%EF%BC%9Amount-dev-sda5-awy0718-sda5"><span class="toc-number">2.4.</span> <span class="toc-text">挂载命令：mount &#x2F;dev&#x2F;sda5 &#x2F;awy0718&#x2F;sda5</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E9%87%8D%E5%90%AF%E5%BC%80%E6%9C%BA%E8%87%AA%E5%8A%A8%E6%8C%82%E8%BD%BD%EF%BC%8C%E9%9C%80%E8%A6%81%E4%BF%AE%E6%94%B9etc-fstab%E6%96%87%E4%BB%B6%EF%BC%8C%E5%9C%A8%E5%90%8E%E9%9D%A2%E6%B7%BB%E5%8A%A0"><span class="toc-number">2.5.</span> <span class="toc-text">重启开机自动挂载，需要修改etc&#x2F;fstab文件，在后面添加</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85cloudreve"><span class="toc-number">3.</span> <span class="toc-text">安装cloudreve</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85Aria2"><span class="toc-number">4.</span> <span class="toc-text">安装Aria2</span></a></li></ol></div></div></div></div></main><footer id="footer" style="background-image: url('https://img2.baidu.com/it/u=3980554196,2695416044&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=JPEG?w=750&amp;h=500')"><div id="footer-wrap"><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div><div class="footer_custom_text"><div> <a href="https://beian.miit.gov.cn/" target="_blank">豫ICP备2023010490号-1</a> </div> <div> <a style="display:flex;justify-content:center;align-items:center;" target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=41152402000204"> <img src= "" data-lazy-src="/img/beian.png" style="width:20px;height:20px;margin:0 5px"> <span>豫公网安备 41152402000204号</span> </a> </div> <div> <a style="display:flex;justify-content:center;" href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" target="_blank"> <span>本网站由</span> <img style="height:30px;margin:0 3px" src= "" data-lazy-src="/img/upyun_logo5.png"> <span>提供CDN加速/云存储服务</span> </a> <div/></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.min.js"></script><script src="https://cdn.jsdelivr.net/npm/instant.page/instantpage.min.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.iife.min.js"></script><div class="js-pjax"></div><canvas class="fireworks" mobile="false"></canvas><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/dist/fireworks.min.js"></script><script id="canvas_nest" defer="defer" color="0,0,255" opacity="0.7" zIndex="-1" count="99" mobile="true" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/dist/canvas-nest.min.js"></script></div></body></html>